<?php
/**
 * @version      BOSSCMS-Free
 * @trademark    BOSSCMS
 * @copyright    Copyright © by BOSSCMS-Free (https://www.bosscms.net/) 保留所有权利
 * @license      https://gitee.com/Greenpeas/BOSSCMS/license/ 和 https://www.bosscms.net/freelicense/
 * @link         https://www.bosscms.net/
 * @author       温州软界网络技术有限公司
**/
defined('IS_OK') or exit('Access Forbidden');
?>
<?php load::into('head'); ?>
<?php echo $G['navsub']; ?>
<form action="<?php echo url::mpf('view','view','add'); ?>" method="post" enctype="multipart/form-data">
<?php global $aE; $aE=$G['config']; ?>
<section class="main form tab">
<?php
foreach($data['ctrl'] as $core=>$series){
?>
  <?php
  $k=0;
  foreach($series as $val){
  ?>
  <aside>
    <div>
      <h2>
        <strong><?php echo $val['title']; ?></strong>
      </h2>
      <?php foreach($val['ctrl'] as $v){ ?>
      <?php if($input = ctrl::complex(0, $core, $v, null, $data)){ ?>
      <dl>
        <dt>
          <strong><?php echo $v['title']; ?></strong>
        </dt>
        <dd>
          <?php echo $input; ?>
          <?php if($v['description']){ ?><cite><?php echo $v['description']; ?></cite><?php }  ?>
        </dd>
      </dl>
      <?php }} ?>
    </div>
  </aside>
  <?php
  }
  ?>
<?php
}
?>
</section>
<section class="refer" <?php echo $G['body_class']=='iframe-content'?(is_numeric($_COOKIE['iframeContentX'])?'style="margin-left:'.$_COOKIE['iframeContentX'].'px;"':'contentx'):''; ?>>
  <button class="button ok" type="submit">
    <em class="fa fa-floppy-o"></em>
    <font>保存</font>
  </button>
</section>
</form>
<?php load::into('foot'); ?>